package cn.test.house.services;

import cn.test.house.beans.User;
import org.springframework.data.relational.core.sql.In;

import java.util.List;
import java.util.Map;

public interface UserService {


    /*
    查询所有用户
     */
    public List<User> getUsers();

    /*
    查询单个用户
     */
    public User getUserById(int id);

    /*
    根据姓名和性别查询用户
     */
    public List<User> getUserByNameAndSex(User user);

    /*
    分页查询
     */
    public List<User> getUsersByPage(int nowPage,int pageSize);

    /*
    添加用户
     */
    public Integer addUser(User user);

    /*
    批量删除用户
     */
    public Integer delAllUser(List arryId);

    /*
    删除单个用户
     */
    public Integer deleteUserById(int id);

}
